/* Singleton Application Helpers */


function TCGProtocol() {
	// The Singleton Instance
	var instance = this;
	
	// Private Config Settings
	var SELECT	= '{"subject":"game-p","p":{"cmd":"select","s":{}}}';
	var RESUME	= '{"subject":"game-p","p":{"cmd":"resume"}}';
	
	// Public Access Methods
	this.getSelectMsg = function(slot) {
		var msg = SELECT.replace("{}", slot);
		
		console.log("TCGProtocol: " + msg);
		
		return msg;
	};
	
	this.getResumeMsg = function() {
		return RESUME;
	};
	
	console.log("TCGProtocol loaded.");
	
	// rewrite the constructor
	TCGProtocol = function () {
		return instance;
	};
}